using System;
using UnityEngine;
using UnityEngine.UI;


public class LobbyForm : UGuiFrom
{
    [SerializeField]
    private Button pvpBtn;
    [SerializeField]
    private Button pveBtn;

    public event Action PvpGameEvent;
    public event Action PveGameEvent;

    protected override void OnInit(object userData)
    {
        base.OnInit(userData);
        pvpBtn.onClick.AddListener(() => 
        {
            PvpGameEvent.Invoke();
        });
        pveBtn.onClick.AddListener(() => 
        {
            PveGameEvent.Invoke();
        });
    }

    protected override void OnOpen(object userData)
    {
        base.OnOpen(userData);

    }
}
